ArrayElement

value class ArrayElement(val index: Int) : ClaimPathElement(source)

Indicates that the respective index in an array is to be selected. It is serialized as an integer

Parameters

index

Non-negative index

Constructors

Link copied to clipboard
constructor(index: Int)

Properties

Link copied to clipboard
val index: Int

Functions

Link copied to clipboard
open operator fun contains(that: ClaimPathElement): Boolean

Indication of whether the current instance contains the other.

Link copied to clipboard
inline fun <T> ClaimPathElement.fold(ifAllArrayElements: () -> T, ifArrayElement: (Int) -> T, ifClaim: (String) -> T): T
Link copied to clipboard
open override fun toString(): String